// 面包屑导航
<template>
  <el-breadcrumb separator="/">
    <el-breadcrumb-item v-for="(item, index) in list" :key="item[index]">
      {{ item.meta.title }}
    </el-breadcrumb-item>
  </el-breadcrumb>
</template>

<script lang="ts" setup>
import { computed, reactive } from 'vue'
import { useRoute } from 'vue-router'
const $route = useRoute()
// console.log($route.meta.title)
// console.log($route.matched)
// console.log($route)

const matched = computed(() => {
  console.log($route.meta.title)
  console.log($route.matched)
  console.log($route)
  return $route.matched
})
let list = reactive(matched)
</script>
<style scoped></style>
